package gov.pbc.gx.nn.pz.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;

import com.bstek.dorado.annotation.PropertyDef;

@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class VoucherBaseEntity extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 所属部门:所属部门
	 */
	@PropertyDef(label = "所属部门", description = "所属部门:所属部门")
	@Column(name = "DEPT_NAME_", length = 512)
	private String deptName;

	/**
	 * 模板名称:模板名称
	 */
	@PropertyDef(label = "模板名称", description = "模板名称:模板名称")
	@Column(name = "PZ_TEMPLATE_", length = 512, nullable = false)
	private String pzTemplate;

	/**
	 * 流水号:流水号
	 */
	@PropertyDef(label = "流水号", description = "流水号:流水号")
	@Column(name = "SERIALNUMBER_", length = 512)
	private String serialnumber;

	/**
	 * 单位名称:单位名称
	 */
	@PropertyDef(label = "单位名称", description = "单位名称:单位名称")
	@Column(name = "COMPANY_NAME_", length = 512)
	private String companyName;

	/**
	 * 单位账号:单位账号
	 */
	@PropertyDef(label = "单位账号", description = "单位账号:单位账号")
	@Column(name = "COMPANY_ACCOUNT_", length = 512)
	private String companyAccount;

	@PropertyDef(label = "附件数量", description = "附件数量:附件数量")
	@Column(name = "ATTACHMENT_COUNT_")
	private Integer attachmentCount;

	@PropertyDef(label = "凭证日期", description = "凭证日期:凭证日期")
	@Column(name = "PZ_DATE_")
	private Date pzDate;

	@PropertyDef(label = "类型", description = "类型:类型")
	@Column(name = "TYPE_", length = 64)
	private String type;

	@PropertyDef(label = "部门id", description = "部门id:部门id")
	@Column(name = "DEPT_ID_", length = 64)
	private String deptId;

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getPzTemplate() {
		return pzTemplate;
	}

	public void setPzTemplate(String pzTemplate) {
		this.pzTemplate = pzTemplate;
	}

	public String getSerialnumber() {
		return serialnumber;
	}

	public void setSerialnumber(String serialnumber) {
		this.serialnumber = serialnumber;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCompanyAccount() {
		return companyAccount;
	}

	public void setCompanyAccount(String companyAccount) {
		this.companyAccount = companyAccount;
	}



	public Integer getAttachmentCount() {
		return attachmentCount;
	}

	public void setAttachmentCount(Integer attachmentCount) {
		this.attachmentCount = attachmentCount;
	}

	public Date getPzDate() {
		return pzDate;
	}

	public void setPzDate(Date pzDate) {
		this.pzDate = pzDate;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

}
